<p>

<fieldset>
<table class="contentTable">

<tr>
<th colspan=2>User Administrator Functions</th>
</tr>

        <tr>
        <td class="label">Login:</td>
        <td><a href="<TMPL_VAR NAME=CGI_BASE_URL>s=User.Login.Login&amp;USER_NAME=<TMPL_VAR NAME=USER_NAME>&amp;USER_PASSWORD=<TMPL_VAR NAME=USER_PASSWORD>">Click here to login as this user</a><br>
            <small>Use this option to view the site as the user would see it.</small>
        </td>
        </tr>


        <tr>
        <td class="label">User Active:</td>
        <td><select name="USER_ACTIVE"><TMPL_VAR NAME=USER_ACTIVE_OPTIONS></select><br>
            <small>Setting this to false stops the user from logging in.</small>
        </td>
        </tr>


        <tr>
        <td class="label">User Permissions:</td>
        <td>
            <input type="hidden" name="USER_PERMISSIONS" value="Update">
            <table style="font-size: 8pt;">
            <tr><th>Type</th><th>Contribute</th><th>Wiki</th><th>Moderate</th><th>Adminstrator</th><th>Super Administrator</th></tr>
            <TMPL_VAR NAME=USER_PERMISSIONS_TABLE>
            </table>
            <small>Add and remove permissions for object types</small>
        </td>
        </tr>


        <tr>
        <td class="label">User IP logging:</td>
        <td><select name="USER_LOGIPS"><TMPL_VAR NAME=USER_LOGIPS_OPTIONS></select><br>
            <small>Setting this to true logs the IP and agent of the user on every session.</small>
        </td>
        </tr>

        <tr>
        <td class="label">Logged IPs:</td>
        <td>
            <table style="font-size: 8pt;">            
			<tr><th>Date</th><th>REMOTE_ADDR</th><th>REMOTE_HOST</th><th>USER_AGENT</th></tr>
            <TMPL_VAR NAME=USER_LOGIPS_LIST>
            </table>
            <small></small>
        </td>
        </tr>

</table>
<div class="submit">
<input type=button class="submit" onClick="updateObject('USER','<TMPL_VAR NAME=o>','<TMPL_VAR NAME=p>');" value="Update &raquo;"> 
</div>
</fieldset>


<script language="JavaScript"><!--
    function deleteAllContent(type) {
        var f= document.forms[0];
        if (confirm('Deleting All Content:\n\n'+type+'\n\nAre you sure.\n\nThis action is not undoable\n and all associated data will be lost.')) {
            f.s.value= "User.DeleteAllContent."+type;
            f.submit();
        }
    }
-->
</script>

<fieldset>
<table class="contentTable">


<tr>
<th colspan=2>User Administrator Delete Functions</th>
</tr>
      <tr>
        <td class="label">Delete All Content:</td>
        <td><select name="USER_DELETECONTENTTYPE"><TMPL_VAR NAME=USER_CONTENTTYPE_OPTIONS></select>
		<small>Select which type of content to remove.  All content of this type will be perminantly deleted from the database.  This action is not undoable.</small>
        </td>
        </tr>
</table>
<div class="submit">
<input type=button class="submit" onClick="deleteAllContent(document.forms[0].USER_DELETECONTENTTYPE.options[document.forms[0].USER_DELETECONTENTTYPE.selectedIndex].value);" value="Delete All Content &raquo;"> 
</div>
</fieldset>

<TMPL_VAR NAME=OBJECTS> 